//
//  TableViewCell.m
//  qq
//
//  Created by 李凯宁 on 16/2/14.
//  Copyright © 2016年 李凯宁. All rights reserved.
//

#import "TableViewCell.h"

@implementation TableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cell{
    NSArray* nib = [[NSBundle mainBundle] loadNibNamed:@"TableViewCell" owner:nil options:nil];
    TableViewCell *cell = [nib objectAtIndex:0];
    return cell;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(0, 0, self.frame.size.height, self.frame.size.height);
    self.imageView.center = self.contentView.center;
}

@end
